import { createRouter, createWebHashHistory } from "vue-router";

import LaunchView from "../src/views/LaunchView.vue";
import SettingView from "../src/views/SettingView.vue";
import ModView from "../src/views/ModView.vue";
import AboutView from "../src/views/AboutView.vue";
import DownloadView from "../src/views/DownloadView.vue";
import OnlineView from "../src/views/OnlineView.vue";

const routes = [
    {
        path: '/launch',
        component: LaunchView
    },
    {
        path: '/setting',
        component: SettingView
    },
    {
        path: '/mod',
        component: ModView
    },
    {
        path: '/about',
        component: AboutView
    },
    {
        path: '/download',
        component: DownloadView
    },
    {
        path: '/online',
        component: OnlineView
    },
    {
        path: '/',
        redirect: '/launch'
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router